<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>操作提示 - 电商之家</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="__STATIC__/index/layui/css/layui.css">
	<link rel="stylesheet" href="__STATIC__/talk/css/mian.css">
</head>
<body class="lay-blog">
		<include file="public/header"/>
		<div class="container-wrap">
			<div class="container">
					<div class="contar-wrap">
						<div style="padding: 150px 0 50px; text-align: center; font-size: 30px; color: #ccc; font-weight: 300;">
							<?php if($code == 1) {?>
							    <!--操作成功-s--->
							    <?php echo(strip_tags($msg)); ?>
							    <a id="href" href="<?php echo($url); ?>">页面跳转中...</a>
							    <span>等待时间：<em id="wait"><?php echo($wait); ?></em></span>
							    <!--操作成功-s--->
							<?php }else{?>
							    <!--操作失败-s--->
								<?php echo(strip_tags($msg)); ?>
								<a id="href" href="<?php echo($url); ?>">页面跳转中...</a>
								<span>等待时间：<em id="wait"><?php echo($wait); ?></em></span>
						        <!--操作失败-e--->
							<?php }?>
						</div>
					</div>
			</div>
		</div>
		<include file="public/footer"/>
	<script src="__STATIC__/index/layui/layui.js">

	</script>
	<script>
		layui.config({
		  base: '__STATIC__/talk/js/' 
		}).use('blog');
		(function () {
	        var wait = document.getElementById('wait'), href = document.getElementById('href').href;
	        var interval = setInterval(function () {
	            var time = --wait.innerHTML;
	            if (time <= 0) {
	                location.href = href;
	                clearInterval(interval);
	            }
	            ;
	        }, 1000);
	    })();
	</script>
</body>
</html>